
<script type="text/javascript" src="/HDS_SCRUM/application/js/hds_scrum_scripts/core.js"></script>
<script type="text/javascript" src="/HDS_SCRUM/application/js/hds_scrum_scripts/user_story.js"></script>
<script type="text/javascript" src="/HDS_SCRUM/application/js/jquery/jquery-1.4.2.js"></script>
<link   rel="stylesheet" href="/HDS_SCRUM/application/css/styles.css">
<div id = "div_exito" class="exito"></div>
<div id = "div_error" class="error"></div>

<table border="1" id="user_story_table">
<?php if(is_array($data['user_stories'])):foreach($data['user_stories'] as $user_story): ?>
	<tr id="tr_us_<?=$user_story['id_user_story'] ?>">
		<td id="td_us_<?=$user_story['id_user_story'] ?>">
			<?=$user_story['contenido'] ?>
		</td>
		<td>
                    <input type="button" value="editar" onclick="seleccionar(<?=$user_story['id_user_story'] ?>)"/>
		</td>
		<td>
			<input type="button" value="quitar" onclick="eliminar(<?=$user_story['id_user_story'] ?>)"/>
		</td>
	</tr>
<?php endforeach; endif;?>
</table>


<input type="hidden" id="id_user_story" name="id_user_story" value="0" />
<input type="hidden" id="id_back_log_item" name="id_back_log_item" value="<?= $data['id_back_log_item'] ?>" />
<input type="hidden" id="id_sprint" name="id_sprint" value="<?= $data['id_sprint'] ?>" />

<textarea id="contenido" disabled="true">Este es el puto contenido</textarea>
<input type="button" value="Nuevo" onclick="nuevo()"/>
<input type="button" value="Aceptar" onclick="guardar()"/>
